package com.jy.rhin.model.body.jiankangtj;

import com.jy.rhin.infra.cda.EDataElement;
import com.jy.rhin.infra.cda.XPath;
import com.jy.rhin.infra.cda.XValid;
import com.jy.rhin.model.CodeObject;
import lombok.Data;

/**
 * 心脏章节
 * @author shenguangyang
 */
@Data
public class XinZhang {
    /** 心律类别代码 */
    @XPath(path = "/entry/observation/code[@code='DE04.10.205.00'][@codeSystem='2.16.156.10011.2.2.1']/../value",
            xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE04_10_205_00))
    CodeObject xinZhangXL;

    /** 心脏杂音标志 */
    @XPath(model = "code",
            codePath = "/entry/observation/code[@code='DE04.10.209.00'][@codeSystem='2.16.156.10011.2.2.1']",
            path = "/value/@value", xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE04_10_209_00))
    String xinZhangZY;

    /** 心脏杂音描述 */
    @XPath(model = "code",
            codePath = "/entry/observation/entryRelationship/observation/code[@code='DE04.10.210.00'][@codeSystem='2.16.156.10011.2.2.1']",
            path = "/value/text()", xValid = @XValid(type = "dataElement", dataElement = EDataElement.DE04_10_210_00))
    String xinZhangZYXS;
}
